.class Lcom/netease/newsreader/activity/SettingsActivity$2;
.super Ljava/lang/Object;
.source "SettingsActivity.java"

# interfaces
.implements Landroid/view/View$OnClickListener;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/activity/SettingsActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/activity/SettingsActivity;


# direct methods
.method constructor <init>(Lcom/netease/newsreader/activity/SettingsActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    .line 368
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 5
    .parameter "arg0"

    .prologue
    const/4 v4, 0x1

    const/4 v3, 0x0

    .line 371
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    invoke-static {v1}, Lcom/netease/newsreader/activity/SettingsActivity;->access$2(Lcom/netease/newsreader/activity/SettingsActivity;)Landroid/widget/PopupWindow;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/PopupWindow;->dismiss()V

    .line 372
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    invoke-static {v1, v3}, Lcom/netease/newsreader/activity/SettingsActivity;->access$3(Lcom/netease/newsreader/activity/SettingsActivity;Z)V

    .line 373
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    invoke-static {v1}, Lcom/netease/newsreader/activity/SettingsActivity;->access$1(Lcom/netease/newsreader/activity/SettingsActivity;)Landroid/content/SharedPreferences;

    move-result-object v1

    invoke-interface {v1}, Landroid/content/SharedPreferences;->edit()Landroid/content/SharedPreferences$Editor;

    move-result-object v0

    .line 376
    .local v0, e:Landroid/content/SharedPreferences$Editor;
    const-string v1, "autodownload"

    invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 377
    const-string v1, "autopost"

    invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 378
    const-string v1, "screenctrl"

    invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 379
    const-string v1, "leftrightctrl"

    invoke-interface {v0, v1, v4}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 380
    const-string v1, "downpic"

    invoke-interface {v0, v1, v3}, Landroid/content/SharedPreferences$Editor;->putBoolean(Ljava/lang/String;Z)Landroid/content/SharedPreferences$Editor;

    .line 381
    invoke-interface {v0}, Landroid/content/SharedPreferences$Editor;->commit()Z

    .line 386
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    const-string v2, "autopost"

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/SettingsActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    check-cast v1, Landroid/preference/CheckBoxPreference;

    invoke-virtual {v1, v4}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 387
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    const-string v2, "screenctrl"

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/SettingsActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    check-cast v1, Landroid/preference/CheckBoxPreference;

    invoke-virtual {v1, v3}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 388
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    const-string v2, "leftrightctrl"

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/SettingsActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    check-cast v1, Landroid/preference/CheckBoxPreference;

    invoke-virtual {v1, v4}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 389
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    const-string v2, "autodownload"

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/SettingsActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    check-cast v1, Landroid/preference/CheckBoxPreference;

    invoke-virtual {v1, v3}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 390
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    const-string v2, "downpic"

    invoke-virtual {v1, v2}, Lcom/netease/newsreader/activity/SettingsActivity;->findPreference(Ljava/lang/CharSequence;)Landroid/preference/Preference;

    move-result-object v1

    check-cast v1, Landroid/preference/CheckBoxPreference;

    invoke-virtual {v1, v3}, Landroid/preference/CheckBoxPreference;->setChecked(Z)V

    .line 392
    iget-object v1, p0, Lcom/netease/newsreader/activity/SettingsActivity$2;->this$0:Lcom/netease/newsreader/activity/SettingsActivity;

    const-string v2, "\u8bbe\u7f6e\u6210\u529f"

    invoke-static {v1, v2, v3}, Landroid/widget/Toast;->makeText(Landroid/content/Context;Ljava/lang/CharSequence;I)Landroid/widget/Toast;

    move-result-object v1

    invoke-virtual {v1}, Landroid/widget/Toast;->show()V

    .line 394
    return-void
.end method
